{extend name="public/base" /} {block name="title"}
<title>个人信息</title>
{__block__}
<link href="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.css" rel="stylesheet">
<script>
    var infoUrl = "{:url('admin/admin/info')}";
    var passwordUrl = "{:url('admin/admin/password')}";
</script>
{/block} {block name="page-heading"}
<div class="col-sm-4">
    <h2>个人信息</h2>
    <ol class="breadcrumb">
        <li>
            <a href="{:url('admin/index/home')}">主页</a>
        </li>
        <li>
            <strong>个人信息</strong>
        </li>
    </ol>
</div>
{/block} {block name="content"}
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>基本信息</h5>
        <div class="ibox-tools">
            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
        </div>
    </div>
    <div class="ibox-content">
        <form class="form-horizontal" id="infoForm">
            <div class="form-group">
                <label class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="username" placeholder="请输入您的用户名" value="{$data.username}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">邮箱</label>
                <div class="col-sm-10">
                    <input type="email" class="form-control" name="email" placeholder="请输入您的邮箱" value="{$data.email}">
                    <span class="help-block m-b-none text-danger">用于找回密码，请谨慎填写。</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">昵称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="nickname" placeholder="请输入您的昵称" value="{$data.nickname}">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <button class="btn btn-primary" type="submit">更新</button>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>密码修改</h5>
        <div class="ibox-tools">
            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
        </div>
    </div>
    <div class="ibox-content">
        <form class="form-horizontal" id="passwordForm">
            <div class="form-group">
                <label class="col-sm-2 control-label">原密码</label>
                <div class="col-sm-10">
                    <input type="password" name="oldpassword" class="form-control" placeholder="请输入原密码">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-10">
                    <input type="password" name="password" id="password" class="form-control" placeholder="请输入新密码">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">确认密码</label>
                <div class="col-sm-10">
                    <input type="password" name="repassword" class="form-control" placeholder="请再次输入新密码">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <button class="btn btn-primary" type="submit">修改</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block} {block name="script"} {__block__}
<script src="//cdn.bootcss.com/limonte-sweetalert2/6.6.8/sweetalert2.min.js"></script>
<script src="//cdn.bootcss.com/jquery-validate/1.17.0/jquery.validate.min.js"></script>
<script src="//cdn.bootcss.com/jquery-validate/1.17.0/localization/messages_zh.min.js"></script>
<script src="__CUSTOME__/js/admin.validate.js"></script>
<script src="__CUSTOME__/js/admin.common.js"></script>
{/block}